/*
 * @Author: PC9527\Jack sophia2152@qq.com
 * @Date: 2023-08-10 09:13:34
 * @LastEditors: PC9527\Jack sophia2152@qq.com
 * @LastEditTime: 2023-08-10 09:29:13
 * @Description:
 */
import {
  LogsPageParams,
  LogsListGetResultModel,
  LoginLogsPageParams,
  LoginLogsListGetResultModel,
} from './model/logsModel';
import { defHttp } from '/@/utils/http/axios';

enum Api {
  LogList = '/system/log',
  LoginLogList = '/system/log/login',
}
/**
 * 系统日志
 * @param params
 * @returns
 */
export const getLogsList = (params: LogsPageParams) =>
  defHttp.get<LogsListGetResultModel>({ url: Api.LogList, params });

/**
 * 系统登录日志
 * @param params
 * @returns
 */
export const getLoginLogsList = (params: LoginLogsPageParams) =>
  defHttp.get<LoginLogsListGetResultModel>({ url: Api.LoginLogList, params });
